﻿using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;
using Demo.Microservice.Entities;

namespace Demo.Microservice.Data;

public class MicroserviceDbContext : AbpDbContext<MicroserviceDbContext>
{
    public MicroserviceDbContext(DbContextOptions<MicroserviceDbContext> options)
        : base(options)
    {
    }

    /// <summary>
    /// 用户表
    /// </summary>
    public DbSet<UserInfo> userInfo { get; set; }
    /// <summary>
    /// 用户地址表
    /// </summary>
    public DbSet<UserAddress> userAddress { get; set; }

    protected override void OnModelCreating(ModelBuilder builder)
    {
        base.OnModelCreating(builder);

        /* Include modules to your migration db context */


        /* Configure your own entities here */
    }
}
